package com.freesky.common.dao.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
public class Permission extends Model<Permission> {
    @TableId
    private Integer id;
    private String name;
    private String desc;
    public Permission() {
    }
    public Permission(Integer id) {
        this.id = id;
    }
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
